<?php 
$this->headTitle('Авторизация администратора');
$this->headLink(array('href' => '/cms/styles/main.css', 'rel' => "stylesheet", 'type' => "text/css"));
$this->headStyle('
#content {
	text-align: center;
	padding-top: 10%;
	padding-left: 50%;
}
TABLE TD {
	padding-top: 6px;
	padding-bottom: 6px;
}
TABLE TD.lablel {
	text-align: right;
	font-family: Tahoma, Arial, Helvetica, sans-serif;
	font-size: 18px;
	padding-right: 8px;
	color:#000000;
}
TABLE TD.icon {
	text-align: right;
	vertical-align: top;
	padding-right: 8px;
	padding-top: 14px;
}
H1 {
	font-family: Tahoma, Arial, Helvetica, sans-serif;
	font-size: 24px;
	font-style: normal;
	font-weight: normal;
	color: #000000;
	margin: 0px;
}
.modalInput {
	font-family: Tahoma, Arial, Helvetica, sans-serif;
	font-size: 18px;
	color: #333333;
	padding: 4px;
}
.okButton {
	font-family: Tahoma, Arial, Helvetica, sans-serif;
	font-size: 18px;
	color: #333333;
	padding: 4px;
	margin: 0px;
}
#form-border {
	background-color: #FFFFFF;
	width: 500px;
	padding: 20px;
	text-align: center;
	border: 3px solid #CCCCCC;
	margin-left: -50%;
}
#errorBox {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FF0000;
	margin-top: 10px;
	margin-bottom: 5px;
}
')
?>
<div id="content">
  <div id="form-border">
  <form method="post" action="">
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="icon"><img src="/cms/images/user-icon.gif" width="16" height="16" /></td>
          <td align="left"><h1 id="winTitle">Вход администратора</h1>
            <?= isset($this->auth_mesages) && count($this->auth_mesages)>0 ? '<div id="errorBox">'.implode('<br />',$this->auth_mesages).'</div>' : '' ?></td>
          <td>&nbsp;</td>
        </tr>
      <tr>
        <td class="lablel">Имя пользователя:</td>
          <td><input name="login" type="text" class="modalInput" id="login" style="width:300px" /></td>
          <td>&nbsp;</td>
        </tr>
      <tr>
        <td class="lablel">Пароль:</td>
          <td><input name="password" type="password" class="modalInput" id="password" style="width:300px" /></td>
          <td>&nbsp;</td>
        </tr>
      <tr>
        <td>&nbsp;</td>
          <td align="left"><input type="submit" class="okButton" id="okButton" value="Войти" /></td>
          <td>&nbsp;</td>
        </tr>
    </table>
  </form>
  </div>
</div>